package com.pro.service;

import com.pro.pojo.JsLoginRecord;
import com.pro.pojo.JsMenu;
import com.pro.pojo.JsMonthCount;
import com.pro.pojo.JsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsUserService
 * Package:com.pro.service
 * Description: 登录service层
 *
 * @Date:2021/11/3 上午 11:37
 * @Author:太宰
 */
public interface JsUserService {
    /* 登录 */
    JsUser getJsUser(String account, String password);
    /* 添加登录日志 */
    Boolean addJsLoginRecord(JsLoginRecord jsLoginRecord);
    /* 修改 */
    Boolean updateUser(Integer userId,String acatarUrl,String password);
    /*获取登录信息*/
    List<JsUser> getLoginMsg(String account);
    /**
     *
     * @author ZPT
     * @date 2021/11/10 14:15
     * @content :根据名字查询
     */
    JsUser loginByName(String username);

    //判断是否解封
    public List<Integer> selectUserEndDate(Integer userId,String endDate);
    int count();

    List<JsMonthCount> countMonth();
}
